var a = 1;

var foo = function () {
  debugger
  console.log(a)
}

foo()